<!--开发宝-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>余额充值</title>
    <link rel="stylesheet" type="text/css" th:href="@{/style/balance.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/mb/css/shopping-mall-index.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/mb/css/style.css}" />
    <link th:href="@{/mb/css/bootstrap.min.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/mb/css/css.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/mb/css/Animation.css}" rel="stylesheet" type="text/css">
    <link rel="stylesheet" th:href="@{/layui/dist/css/layui.css}"  media="all">
    <link rel="stylesheet" type="text/css" th:href="@{/style/container.css}">

    <!--结束-->
<style type="text/css">
    span{
        line-height: 46px;
    }
</style>
</head>
<body style="background-color: white">
<!--nav-->
<!--头开始-->
<header class="navbar-fixed-top headerbg" th:each="codeUser:${codeUsers}">
    <!--左上角logo-->
    <div class="logo">
        <a href="http://www.baidu.com" th:href="@{/mc/logged/loginIndex(userNo=${codeUser.userNo})}" class="fl mt10">
            <img th:src="@{/mb/images/mclogo.png}" style="margin-top: -30px;margin-left: 30px" alt=""></a></div>
    </a>
    </div>

    <!--导航栏剩余部分-->
    <div class="navBox hidden-xs hidden-sm" style="float: right;margin-right: 10%">
        <ul class="navList list-unstyled">
            <li class="navLi">
                <h3>
                    <a th:href="@{/mc/logged/loginIndex(userNo=${codeUser.userNo})}"><span>首页</span></a>
                </h3>
            </li>
            <li class="navLi"><h3>
                <a href="#" th:href="@{/mc/item/loginItemsList(userNo=${codeUser.userNo})}"><span>项目</span></a>
            </h3></li>

            <li class="navLi">
                <h3>
                    <div th:if="${codeUser.type}==1">
                        <a href="#" th:href="@{/mc/item/myRelease(userNo=${codeUser.userNo})}"><span>我的发布</span></a>
                    </div>
                </h3>
            </li>

            <li class="navLi">
                <h3>
                    <span th:if="${codeUser.type}==1">
                         <a href="#" th:href="@{/mc/item/releaseProject(userNo=${codeUser.userNo})}"><span>项目发布</span>
                         </a>
                    </span>
                </h3>
            </li>
            <li class="navLi">
                <h3>
                    <span th:if="${codeUser.type}==2">
                         <a href="#" th:href="@{/mc/stage/participatingProjects(userNo=${codeUser.userNo})}">
                             <span>我的参与</span>
                         </a>
                    </span>
                </h3>
            </li>
            <li class="navLi">
                <h3>
                    <a href="#" th:href="@{/mc/logged/help(userNo=${codeUser.userNo})}">
                <span>帮助</span>
                    </a>
                </h3>
            </li>
            <li class="navLi"><h3>
                <span th:if="${codeUser.image}">
                <img th:src="@{'/article/'+ ${codeUser.image}}" height="60px" width="60px"> </span>
                <span th:unless="${codeUser.image}">
                <img th:src="@{/images/center.png}" height="60px" width="60px">
                </span></h3>
                <div class="navSub">
                    <ul class="navSubList list-unstyled">
                        <li class="navSubLi">
                            <h4><a style="text-decoration: none" th:text="'hello，'+${codeUser.nickName}">hello，xxx</a>
                            </h4>
                        </li>
                        <li class="navSubLi">
                            <h4><a th:href="@{/mc/logged/userInformation(userNo=${codeUser.userNo})}">● 个人中心</a></h4>
                        </li>
                        <li class="navSubLi">
                            <h4><a th:href="@{/mc/logged/moneyPay(userNo=${codeUser.userNo})}">● 我的开发宝</a></h4>
                        </li>
                        <li class="navSubLi">
                            <h4><a th:href="@{/mc/item/myCollection(userNo=${codeUser.userNo})}">● 我的收藏</a></h4>
                        </li>
                        <li class="navSubLi">
                            <h4><a th:href="@{/mc/logged/advise(userNo=${codeUser.userNo})}">● 我要建议</a></h4>
                        </li>
                        <li class="navSubLi">
                            <h4><a th:href="@{/mc/}">● 退出登录</a></h4>
                        </li>
                    </ul>
                </div>
            </li>
        </ul>
    </div>
</header>
<!--头结尾-->
<!--动态线条-->
<div class="bannerN animated" style="height: 200px;">
    <div class="imgFull"><img class="img-responsive" th:src="@{/mb/images/ab_bg_01.png}"></div>
    <div class="clouds_one"></div>
    <div class="clouds_two"></div>
    <div class="clouds_three"></div>
</div>
<!--动态线条结尾-->

<div class="personal w1200" style="align-content: center; width: 900px;margin-top: 50px;margin-bottom: 50px">
    <div class="personal-left f-l">
        <div class="personal-l-tit">
            <h3>个人中心</h3>
        </div>
        <ul th:each="codeUser:${codeUsers}">
            <li class="per-li1"><a th:href="@{/mc/logged/userInformation(userNo=${codeUser.userNo})}">个人资料<span>></span></a></li>
            <li class="current-li per-li2"><a th:href="@{/mc/logged/moneyPay(userNo=${codeUser.userNo})}">开发宝余额<span>></span></a></li>
            <li class="per-li3"><a href="#" th:href="@{/mc/logged/password(userNo=${codeUser.userNo})}">设置支付密码<span>></span></a></li>
            <li class="per-li4"><a th:href="@{/mc/item/myCollection(userNo=${codeUser.userNo})}">我收藏的项目<span>></span></a></li>
            <!--<li class="per-li4"><a href="#">我参与的项目<span>></span></a></li>-->
            <li class="per-li5"><a th:href="@{/mc/logged/advise(userNo=${codeUser.userNo})}">我要建议<span>></span></a></li>
        </ul>
    </div>
    <div class="personal-r f-r"style="width: 650px;margin-left: 10px;">
        <div class="personal-right" style="height: 750px">

            <div class="personal-r-tit">
                <h3>我的余额</h3>
            </div>
            <div class="data-con" th:each="codeUser:${codeUsers}">
                <div style="margin-top: 80px;margin-bottom: 140px" >
                    <div class="show-balance"><span style="font-size: 20px">我的余额</span>:&nbsp;&nbsp;&nbsp;
                        <em th:text="${codeUser.banlance}+'元'">0</em>
                        <div class="money-tips">可提现金额:&nbsp;&nbsp;&nbsp;<label th:text="${codeUser.banlance}+'元'">可提现金额 :0.00元</label></div>
                        <div class="division"></div>
                        <form action=""th:action="@{/mc/alipay/pay(userNo=${codeUser.userNo})}" method="post">
                            <div class="dt1" style="margin-top: 50px">
                                <p class="dt-p f-l" style="margin-left: 50px">金额:</p>
                                <input type="text" class="form-control"name="price" id="price" required="required" placeholder="请输入金额"
                                       onkeyup="if((this.value.indexOf('.') != -1&&(this.value).substring
                                       ((this.value).indexOf('.'),(this.value).length).length>3)){
                                        alert('只能输入数字，小数点后只能保留两位');this.value='';}
                                        else if(this.value<0){alert('只能输入大于0的数');this.value='';}"/>
                                <p style="margin-left: -130px;margin-top: 12px">元</p>
                                <div style="clear:both;"></div>
                            </div>

                        <div class="money-button" style="margin-top: 40px;margin-bottom: 50px">
                            <a href="#">
                                <button type="submit" style="color: #FFFFFF;background-color: #4289DB;">充值</button>
                            </a>
                        </div>
                        </form>
                    </div>

                </div>

                <form action=""th:action="@{/mc/logged/moneyPay(userNo=${codeUser.userNo},receive='1')}" name="fo" method="post">
                <div class="dt1" style="margin-top: 200px">
                    <p class="dt-p f-l" style="margin-left: 50px">金额:</p>
                    <input type="hidden" name="banlance" th:value="${codeUser.banlance}" />
                    <input type="text" class="form-control"name="price" required="required" placeholder="请输入金额"
                           onkeyup="if((this.value.indexOf('.') != -1&&(this.value).substring
                                       ((this.value).indexOf('.'),(this.value).length).length>3)){
                                        alert('只能输入数字，小数点后只能保留两位');this.value='';}
                                        else if(this.value<0){alert('只能输入大于0的数');this.value='';}
                           else if(this.value>50000){alert('单次余额提现不得超过5万元');this.value=''}
                            else if(parseFloat(this.value)>parseFloat(document.fo.banlance.value)){
                               alert('余额不足');this.value=''
                            }
"/>
                    <p style="margin-left: -45px;margin-top: 12px">元</p>
                    <div style="clear:both;"></div>
                </div>
                <div class="money-button" style="margin-top: 40px;margin-bottom: 50px;margin-left: 240px">
                    <a href="#">
                        <button style="color: #FFFFFF;background-color: #4289DB;">提现</button>
                    </a>
                </div>
                </form>
            </div>
        </div>
    </div>
    <div style="clear:both;"></div>
</div>


<!--联系我们-->
<div class="contact-container">
    <div class="contact-connect-container">
        <div class="button-container" style="padding: 0;margin: 0">
            <img th:src="@{/images/contacts.png}"/><span style="margin-left: 5px;">联系我们</span>
        </div>
        <div class="pop" style="display: none;">
            <div class="word" style="text-align: center;"><span style="font-size: 12px;">在线咨询请扫描下面二维码👇</span></div>
            <div style="height: 120px;width: 120px;margin:20px 22px;">
                <img th:src="@{/images/QR.jpg}" style="width: 120px;height: 120px;margin-top: -15px;"/>
            </div>
        </div>
    </div>
</div>

<footer class="footerBg">
    <div class="container"><span class="footer_logo">
        <img th:src="@{/mb/images/mclogo.png}"></span>
        <span style="padding-right: 10px;" class="CopyRight_name">码虫互联网服务外包平台 </span></div>
</footer>

</body>

<script th:src="@{/mb/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
<script th:src="@{/mb/js/jquery.js}" type="text/javascript"></script>
<script type="text/javascript" th:src="@{/js/Contacts.js}"></script>
<script type="text/javascript" th:src="@{/dist/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/js/information.js}"></script>
<script type="text/javascript">
    function f(a) {
        var obj = document.getElementById(a);
        if (obj.style.display == "") {
            obj.style.display = "none";
        } else {
            obj.style.display = "";
        }
    }
</script>



</html>